package com.ct.factory;

import java.math.BigDecimal;
import java.util.Date;

import com.ct.entity.po.Reimbursement;

import lombok.Builder;
@Builder
public class ReimbursementFactory {
    //单例模式
//    private static final ReimbursementFactory INSTANCE = new ReimbursementFactory();
//
//    private ReimbursementFactory() {}
//
//    public static ReimbursementFactory getInstance() {
//        return INSTANCE;
//    }
    //工厂模式
    public static Reimbursement createReimbursement(BigDecimal foodCost, BigDecimal transportCost, BigDecimal hotelCost, Date applyDate, String detail, int travelId) {
        return new Reimbursement(null, foodCost, transportCost, hotelCost, applyDate, detail, travelId);
    }
}